import request, {upFile} from "@/utils/request"

// 获取品牌
export function fetchBrandList() {
  return request("api/goodsBrand/getPullDownBrands", null, {
    method: "GET"
  })
}

// 获取产品
export function fetchProductList(brand) {
  return request(
    "api/goodsBrand/getPullDownProduct",
    {
      brandTitle: brand
    },
    {
      method: "POST"
    }
  )
}

// 产品注册
export function fetchProductRegister(path, data) {
  return upFile("api/watermark/register", path, data)
}
